package com.example.service.impl;

import com.example.bean.User;
import com.example.mapper.UserMapper;
import com.example.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 去除idea @AutoWired下的黄线
 * https://blog.csdn.net/ligh_sqh/article/details/79384839?utm_source=blogxgwz3?utm_medium=distribute.pc_relevant.none-task-blog-baidujs-1
 * @author 朝花不迟暮
 * @version 1.0
 * @date 2020/6/15 23:41
 */
@Service
public class UserServiceImpl implements UserService
{
    @Autowired
    private UserMapper userMapper;

    @Override
    public User queryUserByName(String name,String password)
    {
        return userMapper.queryUserByName(name,password);
    }
}
